package com.lg.head_first.chap02.observer.simple;


/**
 * @author by Mr. Li 2020/7/31 15:35
 */
public class Main {
    public static void main(String[] args) {
        SimpleSubject simpleSubject = new SimpleSubject();

        Observer simpleObserver = new SimpleObserver(simpleSubject);

        // 订阅之后，  由主题发生改变后，通知订阅者
        simpleSubject.setValue(80);

    }
}
